package com.bwf.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @Version v1.0
 * @Description: TODO
 * @Author ZHANZHONGXIN
 * @Date 2022/6/13 9:17
 * @Copyright 博为峰
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Student implements Serializable {
    @JSONField(name = "stuId", ordinal = 1)
    private int id;
    @JSONField(ordinal = 2)
    private String name;
    @JSONField(ordinal = 3)
    private String sex;
    @JSONField(ordinal = 4)
    private Date date;
    @JSONField(ordinal = 5, serialize = false)
    private int salary;
    @JSONField(ordinal = 6, format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @JSONField(ordinal = 7)
    private Date updateTime;
    @JSONField(ordinal = 8)
    private int classID;
}
